.class public abstract Lcn/a/a/a/a;
.super Ljava/lang/Object;


# instance fields
.field private a:Ljava/io/RandomAccessFile;

.field private b:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    iput-object v0, p0, Lcn/a/a/a/a;->b:Ljava/lang/String;

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 0

    return-void
.end method


# virtual methods
.method a(Ljava/io/File;)I
    .locals 2

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V

    :cond_0
    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/a/a/a/a;->b:Ljava/lang/String;

    new-instance v0, Ljava/io/RandomAccessFile;

    const-string v1, "r"

    invoke-direct {v0, p1, v1}, Ljava/io/RandomAccessFile;-><init>(Ljava/io/File;Ljava/lang/String;)V

    iput-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->length()J

    move-result-wide v0

    long-to-int v0, v0

    return v0
.end method

.method a(Ljava/lang/String;)I
    .locals 3

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "orf\u5730\u5740\uff1a "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcn/a/a/a/a;->b(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcn/a/a/a/a;->e()I

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "   \u503c\u4e3a\uff1a"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v1}, Lcn/a/a/a/a;->c(Ljava/lang/String;)V

    return v0
.end method

.method a([B)I
    .locals 1

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0, p1}, Ljava/io/RandomAccessFile;->read([B)I

    move-result v0

    return v0
.end method

.method a(II)Ljava/io/InputStream;
    .locals 2

    new-instance v0, Lcn/a/a/a/c;

    iget-object v1, p0, Lcn/a/a/a/a;->b:Ljava/lang/String;

    invoke-direct {v0, v1, p1, p2}, Lcn/a/a/a/c;-><init>(Ljava/lang/String;II)V

    return-object v0
.end method

.method public a()V
    .locals 1

    :try_start_0
    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method

.method a(I)V
    .locals 3

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    int-to-long v1, p1

    invoke-virtual {v0, v1, v2}, Ljava/io/RandomAccessFile;->seek(J)V

    return-void
.end method

.method b()J
    .locals 2

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    return-wide v0
.end method

.method b(II)Lcn/a/a/a/d;
    .locals 6

    new-instance v0, Lcn/a/a/a/d;

    iget-object v1, p0, Lcn/a/a/a/a;->b:Ljava/lang/String;

    int-to-long v2, p1

    int-to-long v4, p2

    invoke-direct/range {v0 .. v5}, Lcn/a/a/a/d;-><init>(Ljava/lang/String;JJ)V

    return-object v0
.end method

.method b(I)V
    .locals 1

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0, p1}, Ljava/io/RandomAccessFile;->skipBytes(I)I

    return-void
.end method

.method c()B
    .locals 1

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v0

    return v0
.end method

.method c(I)J
    .locals 7

    const-wide/16 v1, 0x0

    add-int/lit8 v0, p1, -0x1

    :goto_0
    if-gez v0, :cond_0

    return-wide v1

    :cond_0
    const-wide/16 v3, 0xff

    iget-object v5, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v5}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v5

    int-to-long v5, v5

    and-long/2addr v3, v5

    mul-int/lit8 v5, v0, 0x8

    shl-long/2addr v3, v5

    or-long/2addr v1, v3

    add-int/lit8 v0, v0, -0x1

    goto :goto_0
.end method

.method d()I
    .locals 1

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->read()I

    move-result v0

    return v0
.end method

.method e()I
    .locals 2

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->read()I

    move-result v0

    shl-int/lit8 v0, v0, 0x8

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->read()I

    move-result v1

    or-int/2addr v0, v1

    return v0
.end method

.method f()I
    .locals 2

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->read()I

    move-result v0

    shl-int/lit8 v0, v0, 0x10

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->read()I

    move-result v1

    shl-int/lit8 v1, v1, 0x8

    or-int/2addr v0, v1

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->read()I

    move-result v1

    or-int/2addr v0, v1

    return v0
.end method

.method g()I
    .locals 1

    iget-object v0, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->readInt()I

    move-result v0

    return v0
.end method

.method h()Lcn/a/a/g;
    .locals 5

    new-instance v0, Lcn/a/a/g;

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->readLong()J

    move-result-wide v1

    iget-object v3, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v3}, Ljava/io/RandomAccessFile;->readLong()J

    move-result-wide v3

    invoke-direct {v0, v1, v2, v3, v4}, Lcn/a/a/g;-><init>(JJ)V

    return-object v0
.end method

.method i()Lcn/a/a/d/a;
    .locals 5

    new-instance v0, Lcn/a/a/d/a;

    invoke-virtual {p0}, Lcn/a/a/a/a;->l()I

    move-result v1

    invoke-virtual {p0}, Lcn/a/a/a/a;->l()I

    move-result v2

    invoke-virtual {p0}, Lcn/a/a/a/a;->m()I

    move-result v3

    invoke-virtual {p0}, Lcn/a/a/a/a;->m()I

    move-result v4

    invoke-direct {v0, v1, v2, v3, v4}, Lcn/a/a/d/a;-><init>(IIII)V

    return-object v0
.end method

.method j()Ljava/util/Locale;
    .locals 5

    const/4 v2, 0x2

    const/4 v4, 0x1

    const/4 v3, 0x0

    new-array v0, v2, [C

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v1

    int-to-char v1, v1

    aput-char v1, v0, v3

    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v1

    int-to-char v1, v1

    aput-char v1, v0, v4

    invoke-static {v0}, Ljava/lang/String;->valueOf([C)Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [C

    iget-object v2, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v2}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v2

    int-to-char v2, v2

    aput-char v2, v1, v3

    iget-object v2, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v2}, Ljava/io/RandomAccessFile;->readByte()B

    move-result v2

    int-to-char v2, v2

    aput-char v2, v1, v4

    invoke-static {v1}, Ljava/lang/String;->valueOf([C)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/util/Locale;

    const-string v3, "\u0000\u0000"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    const-string v0, ""

    :cond_0
    const-string v3, "\u0000\u0000"

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v1, ""

    :cond_1
    invoke-direct {v2, v0, v1}, Ljava/util/Locale;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    return-object v2
.end method

.method k()Ljava/lang/String;
    .locals 3

    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    :goto_0
    iget-object v1, p0, Lcn/a/a/a/a;->a:Ljava/io/RandomAccessFile;

    invoke-virtual {v1}, Ljava/io/RandomAccessFile;->read()I

    move-result v1

    const/4 v2, -0x1

    if-ne v1, v2, :cond_1

    :cond_0
    const-string v1, "UTF-8"

    invoke-virtual {v0, v1}, Ljava/io/ByteArrayOutputStream;->toString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->close()V

    return-object v1

    :cond_1
    if-eqz v1, :cond_0

    invoke-virtual {v0, v1}, Ljava/io/ByteArrayOutputStream;->write(I)V

    goto :goto_0
.end method

.method l()I
    .locals 3

    const-string v0, "\u533a\u57df\u5750\u6807"

    invoke-virtual {p0, v0}, Lcn/a/a/a/a;->a(Ljava/lang/String;)I

    move-result v0

    and-int/lit16 v1, v0, 0x2000

    const/16 v2, 0x2000

    if-ne v1, v2, :cond_0

    and-int/lit16 v0, v0, 0x1fff

    rsub-int/lit8 v0, v0, 0x0

    :goto_0
    return v0

    :cond_0
    and-int/lit16 v0, v0, 0x1fff

    goto :goto_0
.end method

.method m()I
    .locals 1

    const-string v0, "\u533a\u57df\u5bbd\u9ad8\u5ea6"

    invoke-virtual {p0, v0}, Lcn/a/a/a/a;->a(Ljava/lang/String;)I

    move-result v0

    and-int/lit16 v0, v0, 0x1fff

    return v0
.end method
